<!DOCTYPE html>
<!DOCTYPE html>
<html>

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    

    <title>首页示例四</title>

    <link rel="shortcut icon" href="__PUBLIC__/favicon.ico">
    <link href="__admin_css__/bootstrap.min.css?v=3.3.5" rel="stylesheet">
    <link href="__admin_css__/font-awesome.min.css?v=4.4.0" rel="stylesheet">
    <link href="__admin_css__/animate.min.css" rel="stylesheet">
    <link href="__admin_css__/style.min.css?v=4.0.0" rel="stylesheet"><base target="_self">

</head>

<body class="gray-bg top-navigation">

    <div id="wrapper">
        <div id="page-wrapper" class="gray-bg">
            <div class="row border-bottom white-bg">
                <nav class="navbar navbar-static-top" role="navigation">
                    <div class="navbar-header">
                        <button aria-controls="navbar" aria-expanded="false" data-target="#navbar" data-toggle="collapse" class="navbar-toggle collapsed" type="button">
                            <i class="fa fa-reorder"></i>
                        </button>
                        <a href="#" class="navbar-brand">Hplus</a>
                    </div>
                    <div class="navbar-collapse collapse" id="navbar">
                        <ul class="nav navbar-nav">
                            <li class="active">
                                <a aria-expanded="false" role="button" href="{:url('index/index')}" target="_parent"> 返回首页</a>
                            </li>
                            <li class="dropdown">
                                <a aria-expanded="false" role="button" href="#" class="dropdown-toggle" data-toggle="dropdown"> 菜单 <span class="caret"></span></a>
                                <ul role="menu" class="dropdown-menu">
                                    <li><a href="">菜单列表</a>
                                    </li>
                                    <li><a href="">菜单列表</a>
                                    </li>
                                    <li><a href="">菜单列表</a>
                                    </li>
                                    <li><a href="">菜单列表</a>
                                    </li>
                                </ul>
                            </li>
                            <li class="dropdown">
                                <a aria-expanded="false" role="button" href="#" class="dropdown-toggle" data-toggle="dropdown"> 菜单 <span class="caret"></span></a>
                                <ul role="menu" class="dropdown-menu">
                                    <li><a href="">菜单列表</a>
                                    </li>
                                    <li><a href="">菜单列表</a>
                                    </li>
                                    <li><a href="">菜单列表</a>
                                    </li>
                                    <li><a href="">M菜单列表</a>
                                    </li>
                                </ul>
                            </li>
                            <li class="dropdown">
                                <a aria-expanded="false" role="button" href="#" class="dropdown-toggle" data-toggle="dropdown"> 菜单 <span class="caret"></span></a>
                                <ul role="menu" class="dropdown-menu">
                                    <li><a href="">菜单列表</a>
                                    </li>
                                    <li><a href="">菜单列表</a>
                                    </li>
                                    <li><a href="">菜单列表</a>
                                    </li>
                                    <li><a href="">菜单列表</a>
                                    </li>
                                </ul>
                            </li>
                            <li class="dropdown">
                                <a aria-expanded="false" role="button" href="#" class="dropdown-toggle" data-toggle="dropdown"> 菜单 <span class="caret"></span></a>
                                <ul role="menu" class="dropdown-menu">
                                    <li><a href="">菜单列表</a>
                                    </li>
                                    <li><a href="">菜单列表</a>
                                    </li>
                                    <li><a href="">菜单列表</a>
                                    </li>
                                    <li><a href="">菜单列表</a>
                                    </li>
                                </ul>
                            </li>

                        </ul>
                       
                    </div>
                </nav>
            </div>
            <div class="row">
                <div class="col-lg-8">
                    <ul class="list-unstyled">
                     <li><a class="J_menuItem" href="{:url('index/pagesnews_add')}">添加新闻</a>
                     </li>
                     <form action="{:url('news/pagesnews_select')}">


                         <input type="text" name="id" placeholder="查找">
                         <input type="submit" value="确定">
                     </form>

                 </ul>

             </div>

         </div>

         <div class="wrapper wrapper-content">
            <div class="container-fluid ">
                <div class="row">

                    <table  class="table table-striped table-bordered table-responsive">
                     <thead>
                         <th>

                            <td>标题</td>
                            <td>关键字</td>
                            <td>作者</td>
                            <td>时间</td>
                            <td>内容</td>
                            <td>操作</td>

                        </th>
                    </thead>

                    {foreach $data as $value}
                    <tr>

                        <td>{$value.id}</td>
                        <td>{$value.title}</td>
                        <td>{$value.keyword}</td>
                        <td>{$value.author}</td>
                        <td>{$value.create_time}</td>

                <?php  echo date("Y-m-d",strtotime($value['create_time']));?>
                        <td>{$value.content}</td>
                        <td><a class="btn btn-danger btn-xs" href="pagesnews_delete?id={$value.id}">删除</a>&nbsp<a class="btn btn-danger btn-xs" href="pagesnews_update?id={$value.id}">修改</a></td>
                    </tr> {/foreach}
                </table>

                <div align="center" style="height:20px;">{$page}</div>



            </div>
           
           

        </div>

    </div>
     <div class="footer">

        <p class="text-center">版权所有©2016 华为科技有限公司 <a href="http://www.miitbeian.gov.cn/"> 粤A2-20044005号</a></p>

    </div>
</div>
</div>

<script src="__admin_js__/jquery.min.js?v=2.1.4"></script>
<script src="__admin_js__/bootstrap.min.js?v=3.3.5"></script>


</body>

</html>